package Text3;


/*
 *@Student 张策
 */
public class Work3 {
    public static String[] f1(String str){
        String[] name = str.split(" ");
    //        String end=name[name.length-1];
    //        System.arraycopy(name,0,name,1,name.length-1);
    //        name[0]=end;
    //        name[name.length-1]=String.valueOf(Character.toUpperCase(name[name.length-1].charAt(0)));
        return name;
    }
    public static void main(String[] args) {
        String name="Han shun Ping";
        String[] n1=f1(name);
        System.out.printf("%s,%s.%c", n1[2], n1[0], n1[1].toUpperCase().charAt(0));
    }
}
